//detail.js
//获取应用实例
var app = getApp()
Page({
  data: {
    
  },
  //事件处理函数
  onLoad:function (options) {
  	var that = this;
    console.log('detail.js')
    console.log(options)

    wx.request({
      url: app.globalData.api_url + '/Courier/getAPI.php', //仅为示例，并非真实的接口地址
      data: {
        num:options['postid']
      },
      header: {
        'content-type': 'application/json' // 默认值
      },
      success(res) {
        console.log(res.data)
        that.setData({
          messages:res.data.messages
        })
        
      }
    })
  }

})